package com.lagou.edu.service;

import com.lagou.edu.config.FeignLog;
import com.lagou.edu.service.impl.CodeServiceFailBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author stevejson
 */
@FeignClient(name = "lagou-service-code", path = "code", configuration = {FeignLog.class}, fallback = CodeServiceFailBack.class)
public interface ICodeServiceFeignClient {
    @RequestMapping(value = "/validate/{email}/{code}", method = RequestMethod.GET)
    public Integer validateCode(@PathVariable String email, @PathVariable String code);
}
